package com.fz.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.fz.entity.Cart;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fz.entity.Goods;

/**
 * <p>
 * 购物车 服务类
 * </p>
 *
 * @author yuelli
 * @since 2024-08-13
 */
public interface CartService extends IService<Cart> {
    IPage<Cart> getByUserId(Long userId, Integer pageNo, Integer pageSize);
    Boolean add( Long goodsId,Long userId, Integer count);

    Boolean update( Long id, Integer count);
}
